<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>bootstrap的form表单布局</title>
		<!---引入jquery资源--->
		<script type="text/javascript" src="${basePath }static/bootstrap-3.3.7-dist/js/jquery.min.js"></script>
		<!--引入bootstrap的核心js资源文件--->
		<script type="text/javascript" src="${basePath }static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
		<!--引入bootstrap的核心css资源文件--->
		<link rel="stylesheet" type="text/css" href="${basePath }static/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
	</head>

	<body>
		<form class="form-horizontal" action="${basePath}doAdminInfoAdd" method="post">
			<div class="form-group">
			<!-- 隐藏表单域：将修改数据的id发回到后台进行修改保存 -->
			<input type="hidden" id="adminId" name="adminid" value="${sessionScope.adminB.adminid }">
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminName" name="adminname2" value="${sessionScope.adminB.adminname2 }" placeholder="请输入用户名">
				</div>
				<label for="txtPsw" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-3">
					<input type="password" class="form-control" id="adminPsw" name="adminpsw" value="${sessionScope.adminB.adminpsw }" placeholder="请输入密码">
				</div>
			</div>
			<div class="form-group">
				<label for="txtEmail" class="col-sm-2 control-label">邮箱</label>
				<div class="col-sm-3">
					<input type="email" class="form-control" id="adminEmail" name="adminemail" value="${sessionScope.adminB.adminemail }" placeholder="请输入邮箱">
				</div>
				<label for="txtSex" class="col-sm-2 control-label">性别</label>
				<div class="col-sm-3">
					<label class="radio-inline">
  						<input type="radio" name="amdinsex" id="amdinSex1" <c:if test='${sessionScope.adminB.amdinsex == "男" }'>checked</c:if> value="男"> 男
					</label>
					<label class="radio-inline">
						<input type="radio" name="amdinsex" id="amdinSex2" <c:if test='${sessionScope.adminB.amdinsex == "女" }'>checked</c:if> value="女"> 女
					</label>					
				</div>
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">电话</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminTel" name="admintel" value="${sessionScope.adminB.admintel }" placeholder="请输入电话">
				</div>
				<label for="txtPsw" class="col-sm-2 control-label">年龄</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="amdinAge" name="amdinage" value="${sessionScope.adminB.amdinage }" placeholder="请输入年龄">
				</div>
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">创建日期</label>
				<div class="col-sm-3">
					<input type="date" class="form-control" id="adminCreateTime" name="admincreatetime" value=<fmt:formatDate value="${sessionScope.adminB.admincreatetime }" pattern="yyyy-MM-dd"></fmt:formatDate> placeholder="请输入创建时间">
				</div>				
			</div>
			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-1">
					<button type="submit" class="btn btn-default">修&nbsp;&nbsp;改</button>
				</div>
				<div class="col-sm-offset-1 col-sm-1">
					<button type="reset" class="btn btn-default">取&nbsp;&nbsp;消</button>
				</div>
			</div>
		</form>
	</body>

</html>